import os

def list_files(directory):
    for root, dirs, files in os.walk(directory):
        for file in files:
            file_path = os.path.join(root, file)
            file_name = os.path.basename(file_path)
            print(file_name)

# 用法示例
directory_path = r"C:\Users\Desktop\video"
list_files(directory_path)

